
var constant = require('../config/constant.config');

merchantController.$inject = ['$location','$scope']
function merchantController($location,$scope) {
    $location.path('/acm/merchant/inprocess');

    var pc = 0;
    pc = sessionStorage.pc;
    $('#pendingCount').text(pc);
    setInterval(function(){
        var u = sessionStorage.user;
        if(!u){
            clearInterval(this);
            return;
        }
        pc = sessionStorage.pc;
        $('#pendingCount').text(pc);
    },1000);
}

module.exports = merchantController;